package com.boarsoft.message.bean;

import java.io.Serializable;
import java.util.Date;

import com.boarsoft.message.MessageConfig;

public class MessageTrace implements Serializable {
	private static final long serialVersionUID = 2136436920243098530L;

	protected String recipient;
	protected short status;
	protected Date time = new Date();
	protected String host = MessageConfig.getAddr();
	protected String memo = "";
	
	public MessageTrace() {
	}
	
	public MessageTrace(short status) {
		this.status = status;
	}
	
	public MessageTrace(String recipient, short status) {
		this.recipient = recipient;
		this.status = status;
	}

	public MessageTrace(String recipient, short status, String memo) {
		this.recipient = recipient;
		this.status = status;
		this.memo = memo;
	}

	public MessageTrace(short status, String memo) {
		this.status = status;
		this.memo = memo;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
